package com.oig.sys.log.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import java.util.Date;

@Schema
@Data
public class SysAuditLogVo {

	@Schema(description = "主键id")
	private String id;
	@Schema(description = "跟踪号")
	private String traceId;
	@Schema(description = "表名")
	private String tableName;
	@Schema(description = "记录id")
	private String tableId;
	@Schema(description = "操作")
	private String operation;
	@Schema(description = "改动值")
	private String newValue;
	@Schema(description = "改动前")
	private String oldValue;
	@Schema(description = "改动时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	@Schema(description = "操作用户id")
	private Integer userId;
	@Schema(description = "操作用户")
	private String userName;
	@Schema(description = "操作用户所属租户id")
	private Integer tenantId;
	@Schema(description = "操作用户所属租户名称")
	private String tenantName;
}
